﻿ <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>
<%@ MasterType virtualpath="~/MasterPage.master" %>
<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
</script>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>注册新用户</title>
    <style type="text/css">
        .auto-style8 {
            width: 781px;
        }
        .auto-style9 {
            width: 241px;
        }
        .auto-style11 {
            width: 1620px;
        }
        .auto-style14 {
            height: 32px;
            width: 774px;
        }
        .auto-style17 {
            height: 34px;
        }
        .auto-style19 {
            width: 774px;
        }
        .auto-style20 {
            width: 241px;
            height: 110px;
        }
        .auto-style21 {
            width: 1620px;
            height: 110px;
        }
        .auto-style22 {
            width: 774px;
            height: 110px;
        }
        .auto-style23 {
            width: 241px;
            height: 50px;
        }
        .auto-style24 {
            width: 1620px;
            height: 50px;
        }
        .auto-style25 {
            width: 774px;
            height: 50px;
        }
        </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <table align="center"  style="background-color: #FFFFFF" class="auto-style8">
            <tr>
                <td colspan="3" align="center" class="auto-style17" style="border: thin dashed #C0C0C0">
                    <h1>注册新用户</h1>
                </td>
            </tr>
            <tr>
                <td class="auto-style9" style="border: thin dashed #C0C0C0">
                    账号</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxLogin" runat="server" ></asp:TextBox>
                    <%--OnTextChanged="TextBoxLogin_TextChanged"--%>
                </td>
                <td class="auto-style19" style="border: thin dashed #C0C0C0">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style9">
                    密码<td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password"></asp:TextBox>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style19">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ErrorMessage="请输入密码" ControlToValidate="TextBoxPassword"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style9">
                    确认密码</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxPassword2" runat="server" TextMode="Password"></asp:TextBox>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style19">
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ErrorMessage="两次输入密码不一致" ControlToCompare="TextBoxPassword" 
                        ControlToValidate="TextBoxPassword2"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style9">
                    姓名</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style19">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ErrorMessage="请输入真实姓名" ControlToValidate="TextBoxName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style9">
                    身份证号</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxIdcard0" runat="server"></asp:TextBox>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style19">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxIdcard0" ErrorMessage="身份证号不能为空"> *</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxIdcard0" ErrorMessage="请正确填写身份证号码" ValidationExpression="\d{17}[\d|X]|\d{15}"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style9">
                    性别</td>
                <td class="auto-style11" align="left" style="border: thin dashed #C0C0C0">
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
                        RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
                        <asp:ListItem Selected="True">男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style19">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style9" style="border: thin dashed #C0C0C0">
                    E-mail</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxEmail" runat="server"></asp:TextBox>
                </td>
                <td class="auto-style14" style="border: thin dashed #C0C0C0">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Email格式错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style9">
                    地址</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxAddress" runat="server"></asp:TextBox>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style19">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style9" style="border: thin dashed #C0C0C0">
                    注册时间</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxAddress0" runat="server"></asp:TextBox>
                </td>
                <td class="auto-style19" style="border: thin dashed #C0C0C0">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBoxAddress0" ErrorMessage="注册时间不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style9">
                    生日</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxAddress1" runat="server"></asp:TextBox>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style19">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style9">
                    电话号码</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxAddress2" runat="server"></asp:TextBox>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style19">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style9" style="border: thin dashed #C0C0C0">
                    个人网站</td>
                <td class="auto-style11" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxAddress3" runat="server"></asp:TextBox>
                </td>
                <td class="auto-style14" style="border: thin dashed #C0C0C0">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBoxAddress3" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBoxAddress3" ErrorMessage="网站格式错误" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                    </td>
            </tr>
            <tr>
                <td style="border: thin dashed #C0C0C0" class="auto-style20">
                    个人介绍</td>
                <td class="auto-style21" style="border: thin dashed #C0C0C0">
                    <asp:TextBox ID="TextBoxInfo" runat="server" Height="64px" TextMode="MultiLine" 
                        Width="182px"></asp:TextBox>
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style22">
                    </td>
            </tr>
            <tr>
                <td align="right" style="border: thin dashed #C0C0C0" onclick="ButtonSubmit_Click" class="auto-style23">                  
                </td>
                <td class="auto-style24" style="border: thin dashed #C0C0C0" >      
                    <asp:Button ID="ButtonSubmit" runat="server" Text="提交" Width="50px" OnClick="ButtonSubmit_Click1"/>
                    <asp:Button ID="ButtonCancle" runat="server" Text="取消" Width="57px" OnClick="ButtonCancle_Click" 
                        />
                </td>
                <td style="border: thin dashed #C0C0C0" class="auto-style25">
                    </td>
            </tr>
        </table>
</asp:Content>
